package org.yangspring.samples.mvc.domainOracle;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Date;

/**
 * Created by franklin on 6/21/2017.
 */

@Entity
@Table(schema = "SCOTT", name = "EMP")
public class Employee {

    @Id
    @Column(name = "EMPNO")
    private Integer empno;

    @Column(name = "ENAME")
    private String ename;

    @Column(name = "JOB")
    private String job;

    @Column(name = "MGR")
    private Integer mgr;

    @Column(name = "HIREDATE")
    private Date hiredate;

    @Column(name = "SAL")
    private Integer sal;

    @Column(name = "COMM", nullable = true)
    private Integer comm;

    @Column(name = "DEPTNO")
    private Integer deptno;

    public void setEmpno(Integer empno){
        this.empno = empno;
    }
    public Integer getEmpno(){
        return this.empno;
    }

    public void setEname(String ename){
        this.ename = ename;
    }
    public String getEname(){
        return this.ename;
    }

    public void setJob(String job){
        this.job = job;
    }
    public String getJob(){
        return this.job;
    }

    public void setMgr(Integer mgr){
        this.mgr = mgr;
    }
    public Integer getMgr(){
        return this.mgr;
    }

    public void setHiredate(Date hiredate){
        this.hiredate = hiredate;
    }
    public Date getHiredate(){
        return this.hiredate;
    }

    public void setSal(Integer sal){
        this.sal = sal;
    }
    public Integer getSal(){
        return this.sal;
    }

    public void setComm(Integer comm){
        this.comm = comm;
    }
    public Integer getComm(){
        return this.comm;
    }

    public void setDeptno(Integer deptno){
        this.deptno = deptno;
    }
    public Integer getDeptno(){
        return this.deptno;
    }

}
